﻿@using www.Controllers
@model Core.Contract.DataContract.RelaxContactDataContract
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="frame-content">
   
    @if (Model != null)
    {
        <div style="width: 100%; height: auto; overflow: hidden; clear: both;text-align: center;">@Model.Company</div>
        <div class="clear"></div>
      
        <div style="width: 100%; height: auto; overflow: hidden; clear: both;text-align: center;"> @Html.Raw(HttpUtility.HtmlDecode(Model.Detail))</div>
    }

</div>
<div class="clear"></div>
<div class="frame-content">
    @using (Html.BeginForm("Send", "Home", FormMethod.Post, new { id = "frmSend", enctype = "multipart/form-data" }))
    {
        <fieldset>
            <legend>@Utility.GetResource.GetResouceValue(Session["Culture"], "lblContactDetail")</legend>
            <div class="clear"></div>
            <div class="content" style="color: red; font-weight: bold;">
                @ViewBag.Message
            </div>
            <div class="row">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblFullName"):
                </div>
                <div class="col-right">
                    @Html.TextBox("txtName", null, new { @class = "textbox" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblCompany"):
                </div>
                <div class="col-right">
                     @Html.TextBox("txtCompany", null, new { @class = "textbox" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblAddress"):
                </div>
                <div class="col-right">
                    @Html.TextBox("txtAddress", null, new { @class = "textbox" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblTel"):
                </div>
                <div class="col-right">
                     @Html.TextBox("txtTel", null, new { @class = "textbox", onkeyup = "javascript:checkNumber(this);" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblEmail"):
                </div>
                <div class="col-right">
                     @Html.TextBox("txtEmail", null, new { @class = "textbox" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="content">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblDetail"):
                </div>
                <div class="col-right">
                    @Html.TextArea("txtDetail", null, new { @class = "textarea2" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">
                </div>
                <div class="col-right">
                </div>
            </div>
            <div class="row">
                <div class="col-left">
                </div>
                <div class="col-right">
                    <button onclick="javascript:document.getElementById('frmSend').submit();">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblSend")</button>
                </div>
            </div>
        </fieldset>

    }

</div>
